package de.chimos.property.test1;

import javafx.beans.property.StringProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import de.chimos.property.annotation.PropertyHint;

public class Case6 {

	@PropertyHint public String one = "Dummy";
	
	StringProperty oneProperty() { return null; }
	
	public Case6()
	{
		oneProperty().addListener(new ChangeListener<String>() {
				@Override
				public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
					System.out.println("Your text: " + one);
				}
			});
	}
	
}
